# Archlive <http://archlive-pkg.googlecode.com>

pkgname=lrcdis-svn
pkgver=100
pkgrel=1
pkgdesc="lrcdis is a bash script for auto download lyrics and display it."
arch=('any')
url="http://code.google.com/p/lrcdis"
license=('GPL2')
depends=('bash')
source=()

_svntrunk=http://lrcdis.googlecode.com/svn/trunk
_svnmod=lrcdis

build() {

    cd $srcdir
    if [ -d $_svnmod/.svn ]; then
	(cd $_svnmod && svn --config-dir ../ up -r $pkgver)
    else
	svn --config-dir ./ co $_svntrunk -r $pkgver $_svnmod
    fi
    cd $_svnmod
    install -Dm755 lrcdis ${pkgdir}/usr/bin/lrcdis
}
